﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcCadastro.ascx.cs" Inherits="MyWebCar.Controls.UcCadastro" %>

<script src="../Scripts/jquery-2.0.1.min.js"></script>

<table class="TableMaster">
    <tr>
        <td>
            <table>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblTitle" runat="server"><h1><small>CADASTRO DE MARCAS</small></h1></asp:Label></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblMarca" runat="server" Text="Marca: "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtMarca" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblStatus" runat="server" Text="Situação"></asp:Label></td>
                    <td>
                        <asp:DropDownList ID="cmbStatus" runat="server"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="Iserir Marca" OnClick="btnSave_Click" /></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <h1><small>MARCAS CADASTRADAS</small></h1>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:GridView ID="grvMarcas" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None">
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <Columns>
                                <asp:BoundField DataField="ID" HeaderText="ID" />
                                <asp:BoundField DataField="NOME" HeaderText="Nome" />
                                <asp:BoundField DataField="STATUS" HeaderText="Situação" />
                            </Columns>
                            <EditRowStyle BackColor="#999999" />
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </td>
        <td>
                  <table>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lbltitlemodelos" runat="server"><h1><small>CADASTRO DE MODELOS</small></h1></asp:Label></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblModelo" runat="server" Text="Modelo: "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtModelo" runat="server"></asp:TextBox>
                    </td>
                </tr>
                      <tr>
                    <td>
                        <asp:Label ID="lblMarcaAssociada" runat="server" Text="Marca do Modelo: "></asp:Label></td>
                    <td>
                        <asp:DropDownList ID="cmbMarcaAssociada" runat="server"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblSituacaoModelo" runat="server" Text="Situação"></asp:Label></td>
                    <td>
                        <asp:DropDownList ID="cmbStatusModelo" runat="server"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <asp:Button ID="btnSaveModelo" runat="server" Text="Iserir Modelo" OnClick="btnSaveModelo_Click" /></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <h1><small>MODELOS CADASTRADOS</small></h1>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None">
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <Columns>
                                <asp:BoundField DataField="ID" HeaderText="ID" />
                                <asp:BoundField DataField="NOME" HeaderText="Nome" />
                                <asp:BoundField DataField="MARCA" HeaderText="Marca" />
                                <asp:BoundField DataField="STATUS" HeaderText="Situação" />
                            </Columns>
                            <EditRowStyle BackColor="#999999" />
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>


